/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.brainstretch.recommend;

import org.brainstretch.models.document.DocumentVector;
import org.brainstretch.models.quizzes.Quiz;

/**
 *
 * @author mrodaitis
 */
public class RecommendItem implements Comparable<RecommendItem> {
 
    private DocumentVector docVector;
    private double score;
    private Quiz quiz;
    private ProfileVector profVector;

    public RecommendItem(DocumentVector vector, ProfileVector profVector, double score, Quiz quiz) {
        this.docVector = vector;
        this.score = score;
        this.quiz = quiz;
        this.profVector = profVector;
    }

    public Quiz getQuiz() {
        return quiz;
    }

    public void setQuiz(Quiz quiz) {
        this.quiz = quiz;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public ProfileVector getProfVector() {
        return profVector;
    }

    public void setProfVector(ProfileVector profVector) {
        this.profVector = profVector;
    }
    
    
    public DocumentVector getVector() {
        return docVector;
    }

    public void setVector(DocumentVector vector) {
        this.docVector = vector;
    }
    
    @Override
    public int compareTo(RecommendItem item) {
        return (int)Math.signum(this.getScore()- item.getScore());
    }
}
